package io.e2x.testground.fruitstore.data;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillItemDTO {
    private String skuName;
    private String spuNo;
    private Integer count;
    private BigDecimal price;
    private BigDecimal payPrice;

    @Override
    public String toString() {
        return "商品: {" +
                "商品名称='" + skuName + '\'' +
                ", 货号='" + spuNo + '\'' +
                ", 数量=" + count +
                ", 单价=" + price +
                ", 实价=" + payPrice +
                '}';
    }
}
